<!DOCTYPE html >
<html>
<head>
<meta name="Generator" content="tpshop" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>地址列表-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="stylesheet" href="__STATIC__/css/public.css">
<link rel="stylesheet" href="__STATIC__/css/user.css">

<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>
<link rel="stylesheet" href="__STATIC__/css/font-awesome.min.css">
<link rel="stylesheet" href="__STATIC__/css/icomoon.css">
</head>
<body><div class="tab_nav tab_nav_none">
    <div class="header">
	<a href="javascript:void(0);" onClick="javascript:history.go(-1);" class="header_l"><i class="fa fa-angle-left"></i></a>
      <div class="h-mid">地址管理   </div>
	<a href="{:U('Index/index')}" class="header_r"><i class="fa fa-home"></i></a>
	  
    </div>
</div>
<include file="Public/menu"/>
									
<div id="tbh5v0">    
  <volist name="lists" id="list">  
	 
        <div class="address_add   <if condition="$list[is_default] eq 1"> Default</if>">
                
             <if condition="$_GET['source'] eq 'cart2'">         
                    <a href="{:U('/Mobile/Cart/cart2',array('address_id'=>$list['address_id']))}">
                        <if condition="$list[is_default] eq 1"><h2><img src="__STATIC__/images/right.png"></h2></if>
                        <dl>
                            <dt><span>{$list.consignee}</span></dt>
                            <dd>{$region_list[$list['province']]['name']}，{$region_list[$list['city']]['name']}，{$region_list[$list['district']]['name']}，{$list.address}</dd>
                        </dl>
                    </a>         
             <else/>
                    <if condition="$list[is_default] eq 1"><h2><img src="__STATIC__/images/right.png"></h2></if>
                    <dl>
                            <dt><span>{$list.consignee}</span></dt>
                        <dd>{$region_list[$list['province']]['name']}，{$region_list[$list['city']]['name']}，{$region_list[$list['district']]['name']}，{$list.address}</dd>
                     </dl>         
             </if>                 
                       
             <a href="{:U('/Mobile/User/edit_address',array('id'=>$list[address_id],'source'=>$_GET['source']))}"><img id="amend" src="__STATIC__/images/amend.png"/></a>
        </div>        
       		 
   </volist> 
</div>

<div style=" width:100%; height:50px;"></div>
<div class="list_footer" style="bottom:70px;">
	<a href="{:U('/Mobile/User/add_address',array('source'=>$_GET['source']))}">添加新地址</a>
</div>

<script>
function goTop(){
	$('html,body').animate({'scrollTop':0},600);
}
</script>
<a href="javascript:goTop();" class="gotop"><img src="__STATIC__/images/topup.png"></a>		
</div>

 
<include file="Public/footer_nav"/>
</body>
</html>